package com.xbongbong.paas.domain.entity.ext;


import lombok.ToString;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author: wufeng
 * @date: 2018/8/15 10:33
 * @desrcption: 可选范围
 */
@ToString
public class OptionalRangeEntity implements Serializable {

    private static final long serialVersionUID = -4545718866547557814L;

    /**
     * 类型 用于区分部门：dept、角色：role、用户：user
     * @see com.xbongbong.paas.enums.OptionalRangeEnum
     */
    private String property;

    /**
     * 是否可编辑
     */
    private Integer editable;

    /**
     * 所选的id
     * 动态负责人时，为DynamicManagerLevelEnum对应的code值
     * @see com.xbongbong.pro.enums.DynamicManagerLevelEnum
     */
    private String id;

    /**
     * id对应的名称
     */
    private String name;
    /**
     * 头像
     */
    private String userAvatar;
    /**
     * 动态负责人attr，参考（FieldTypeEnum中的alias)
     * @see com.xbongbong.paas.enums.FieldTypeEnum
     */
    private String attr;


    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public Integer getEditable() {
        return editable;
    }

    public void setEditable(Integer editable) {
        this.editable = editable;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr;
    }

    public OptionalRangeEntity() {}

    public OptionalRangeEntity(String id, String name, String property, String attr, Integer editable) {
        super();
        this.id = id;
        this.name = name;
        this.property = property;
        this.attr = attr;
        this.editable = editable;
    }

}
